package com.xiaoye.qbproject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoye.qbproject.domain.QbSubject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 * @description 针对表【QB_SUBJECT(情报专题)】的数据库操作Mapper
 * @createDate 2025-01-14 19:28:41
 * @Entity com.xiaoye.qbproject.domain.QbSubject
 */
public interface QbSubjectMapper extends BaseMapper<QbSubject> {
    /**
     * @param qbSubject
     * @param userId
     * @description: 获取我的订阅专题列表
     * @author: ChenYao
     * @return: java.util.List<com.xiaoye.qbproject.domain.QbSubject>
     * @ceateDate: 2025/1/15 下午5:10
     */

    List<QbSubject> selectMySubscriptionSubjectList(@Param("qbSubject") QbSubject qbSubject, @Param("userId") String userId);

    /**
     * @param subjectId
     * @param lastUpdateTime
     * @description: 更新文章旗下文章最新更新时间
     * @author: ChenYao
     * @return: void
     * @ceateDate: 2025/1/17 下午7:15
     */

    void updateSubjectLastUpdateTime(@Param("subjectId") String subjectId, @Param("lastUpdateTime") Date lastUpdateTime);
}




